<script setup>
/**
 * 添加联系人列表 渲染box 搜索触发成功后显示
 * 添加联系人功能
 * 已发送邀请 !!
 */
defineProps({
    headImgUrl: {
        type: String,
        default: '',
    },
    username: {
        type: String,
        default: '加载中...',
    },
    id: {
        type: Number,
        default: '',
    },
})
</script>

<template>
    <div class="box">
        <img :src="headImgUrl" alt="" />
        <div style="font-size: 20px; line-height: 80px">{{ username }}</div>
        <button class="btn">已发送</button>
    </div>
</template>

<style scoped>
.box {
    position: relative;
    height: 80px;
    width: 100%;
    border-top: 1px solid var(--el-border-color);
    border-bottom: 1px solid var(--el-border-color);
    display: flex;
}

img {
    width: 62px;
    height: 62px;
    margin: 9px;
    border-radius: 12px;
}

.btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
    width: 50px;
    height: 25px;
    border-radius: 5px;
    background-color: rgb(177.3, 179.4, 183.6);
    border: none;
    color: white;
    cursor: pointer;
}
</style>
